package Com.amit.corejava;

public class Lab26 {

	int id;
	String name;
	
	
	public Lab26()
	{
		System.out.println("Default constructor is invoked");
	}
	public Lab26(int id,String name)
	{
		this();
		this.id=id;
		this.name=name;
	}
	
	public void display()
	{
		System.out.println(id+" "+name);
	}
	public static void main(String[] args) {
		
		Lab26 l1=new Lab26(12,"amit");
		
		Lab26 l2=new Lab26(14,"anil");
		
		l1.display();
		l2.display();
		

	}

}
